/***
 * formSize(String):表单大小 small mini large
 * type(String):表单类型 text | select | date | checkbox | radio
 * inputType(String):input类型
 * label(String):字段名称
 * labelWidth(String):字段宽度 150px
 * placeholder(String):默认显示
 * isReadOnly(Bollean):是否只读
 * isDisabled(Bollean):是否禁止
 * isRequired(Bollean):是否必填
 * optionList(Array):如果是下拉，复选，单选的数据源
 * keyName(String):有数据源的情况下，绑定的key字段名
 * valName(String):有数据源的情况下，绑定的label字段名
 * maxlength(Number):最大输入长度
 * colSpan(Number):占位符
 * isAppendRightBtn(Boolean):是否显示input右侧的按钮类型
 * appendRightBtnType(String):input右侧的按钮类型
 * appendRightBtnTxt(String):input右侧的按钮文字
 * bindFieldName(String):绑定后段字段名称
 * bindFieldVal(String):双向绑定绑定的具体值，一般用于readonly或者disabled的情况下直接赋值
 * buttonTxt(String):type为button时的按钮内容文字
 * influenceFiledName(String):二级联动所关联的select的后段字段->bindFieldName
 */

//项目基本信息


const Form = [
    {
        type: 'text',
        label: '资产编码',
        inputType: "",
        isDisabled: true,
        isRequired: false,
        bindFieldName: 'shopCode',
        bindFieldVal: null,
        colSpan: 12,
        labelWidth: "250px",
        formSize: 'mini'
    },
    {
        type: 'text',
        label: 'CAD面积',
        isDisabled: true,
        isRequired: false,
        bindFieldName: 'cadArea',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '关联合同',
        inputType: "",
        isDisabled: true,
        isRequired: false,
        bindFieldName: 'contractName',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '当前客户名称',
        inputType: "",
        isDisabled: true,
        isRequired: false,
        bindFieldName: 'leaserShopName',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '当前合同截止日',
        isDisabled: true,
        isRequired: false,
        bindFieldName: 'contractEndDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'select',
        label: '计划举措',
        placeholder: '请选择',
        isRequired: true,
        optionList: [
        ],
        keyName: 'key',
        valName: 'value',
        bindFieldName: 'planType',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '离场时间',
        isRequired: true,
        bindFieldName: 'leaveDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '清退成本（元）',
        inputType: "number",
        isRequired: true,
        bindFieldName: 'clearCost',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'select',
        label: '计划租金模式',
        placeholder: '请选择',
        isRequired: true,
        optionList: [

        ],
        keyName: 'key',
        valName: 'value',
        bindFieldName: 'rentMode',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '计划起租日',
        isRequired: true,
        bindFieldName: 'rentStartDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '结束时间',
        isRequired: true,
        bindFieldName: 'rentEndDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'select',
        label: '业态类型',
        placeholder: '请选择',
        isRequired: true,
        optionList: [

        ],
        keyName: 'key',
        valName: 'value',
        bindFieldName: 'industryType',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'select',
        label: '是否主力店',
        placeholder: '请选择',
        isRequired: true,
        optionList: [
            {
                key: 0,
                value: "否"
            },
            {
                key: 1,
                value: "是"
            }
        ],
        keyName: 'key',
        valName: 'value',
        bindFieldName: 'ifMainStore',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'text',
        label: '押金（元）',
        inputType: "number",
        isRequired: false,
        bindFieldName: 'depositAmount',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'date',
        label: '押金付款日',
        isRequired: true,
        bindFieldName: 'depositPaymentDate',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'text',
        label: '租金指导价（元/天/㎡）',
        inputType: "number",
        isRequired: false,
        isDisabled: false,
        bindFieldName: 'guideRent',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'text',
        label: '预计租金单价（元/天/㎡）',
        inputType: "number",
        isRequired: true,
        bindFieldName: 'rentUnitPrice',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'text',
        label: '预计分成比例',
        inputType: "number",
        isRequired: true,
        bindFieldName: 'shareProportion',
        bindFieldVal: null,
        colSpan: 12
    }, 
    // {
    //     type: 'text',
    //     label: '预计月租金（元）',
    //     isDisabled: true,
    //     inputType: "number",
    //     isRequired: false,
    //     bindFieldName: 'monthlyRentAmount',
    //     bindFieldVal: null,
    //     colSpan: 12
    // },
     {
        type: 'select',
        label: '租金缴费周期',
        placeholder: '请选择',
        isRequired: true,
        optionList: [

        ],
        keyName: 'key',
        valName: 'value',
        bindFieldName: 'rentCollectionCycle',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'date',
        label: '租金起付日',
        isRequired: true,
        bindFieldName: 'rentFeeStartDate',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'text',
        label: '管理费指导价（元/天/㎡）',
        inputType: "number",
        isDisabled: false,
        isRequired: false,
        bindFieldName: 'managementGuidePrice',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'text',
        label: '预计管理费单价（元/天/㎡）',
        inputType: "number",
        isRequired: true,
        bindFieldName: 'managementUnitPrice',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'select',
        label: '管理费缴费周期',
        placeholder: '请选择',
        isRequired: true,
        optionList: [

        ],
        keyName: 'key',
        valName: 'value',
        bindFieldName: 'managementFeeCycle',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'date',
        label: '管理费起付日',
        isRequired: true,
        bindFieldName: 'managementFeeStartDate',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'text',
        label: '预估租赁成本',
        inputType: "number",
        isRequired: true,
        bindFieldName: 'rentCost',
        bindFieldVal: null,
        colSpan: 12
    }, {
        type: 'date',
        label: '成本发生时间',
        isRequired: true,
        bindFieldName: 'rentCostDate',
        bindFieldVal: null,
        colSpan: 12
    },
]


const FormGroup2 = [
    {
        type: 'text',
        label: '事项',
        isRequired: true,
        isReadOnly: true,
        bindFieldName: 'activityName',
        bindFieldVal: null,
        labelWidth: '150px',
        colSpan: 12
    },
    {
        type: 'text',
        label: '总收入',
        isRequired: true,
        bindFieldName: 'total',
        bindFieldVal: null,
        colSpan: 12,
        isReadOnly: true
    },
    // {
    //     type: 'date',
    //     label: '开始时间',
    //     isRequired: true,
    //     bindFieldName: 'rentStartDate',
    //     bindFieldVal: null,
    //     colSpan: 12
    // },
    // {
    //     type: 'date',
    //     label: '结束时间',
    //     isRequired: true,
    //     bindFieldName: 'rentEndDate',
    //     bindFieldVal: null,
    //     colSpan: 12
    // },
    {
        type: 'text',
        inputType: "number",
        label: '1月预估金额',
        isRequired: true,
        bindFieldName: '1',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '2月预估金额',
        isRequired: true,
        bindFieldName: '2',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '3月预估金额',
        isRequired: true,
        bindFieldName: '3',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '4月预估金额',
        isRequired: true,
        bindFieldName: '4',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '5月预估金额',
        isRequired: true,
        bindFieldName: '5',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '6月预估金额',
        isRequired: true,
        bindFieldName: '6',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '7月预估金额',
        isRequired: true,
        bindFieldName: '7',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '8月预估金额',
        isRequired: true,
        bindFieldName: '8',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '9月预估金额',
        isRequired: true,
        bindFieldName: '9',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '10月预估金额',
        isRequired: true,
        bindFieldName: '10',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '11月预估金额',
        isRequired: true,
        bindFieldName: '11',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '12月预估金额',
        isRequired: true,
        bindFieldName: '12',
        bindFieldVal: null,
        colSpan: 12
    },
]


//----停车场
const FormCard1 = [
    {
        type: 'text',
        label: '停车场编码',
        isRequired: true,
        bindFieldName: 'parkCode',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '停车场名称',
        isRequired: true,
        bindFieldName: 'parkName',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '开始时间',
        isRequired: true,
        bindFieldName: 'rentStartDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '结束时间',
        isRequired: true,
        bindFieldName: 'rentEndDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'select',
        label: '计划举措',
        placeholder: '请选择',
        isRequired: true,
        optionList: [
        ],
        keyName: 'key',
        valName: 'value',
        bindFieldName: 'planType',
        bindFieldVal: null,
        colSpan: 12
    },
    // {
    //     type: 'text',
    //     label: '预计月租金',
    //     isDisabled: true,
    //     inputType: "number",
    //     isRequired: false,
    //     bindFieldName: 'monthlyRentAmount',
    //     bindFieldVal: null,
    //     colSpan: 12
    // },
    {
        type: 'date',
        label: '离场时间',
        isRequired: true,
        bindFieldName: 'leaveDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '清退成本',
        inputType: "number",
        isRequired: true,
        bindFieldName: 'clearCost',
        bindFieldVal: null,
        colSpan: 12
    },

]

//----楼内广告
const FormCard2 = [
  
    {
        type: 'select',
        label: '计划举措',
        placeholder: '请选择',
        isRequired: true,
        optionList: [
        ],
        keyName: 'key',
        valName: 'value',
        bindFieldName: 'planType',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '广告位名称',
        isRequired: false,
        isDisabled: true,
        bindFieldName: 'locationDesc',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '关联合同',
        isRequired: false,
        isDisabled: true,
        bindFieldName: 'contractName',
        bindFieldVal: null,
        colSpan: 12
    },
    // {
    //     type: 'text',
    //     label: '当前客户名称',
    //     isRequired: false,
    //     isDisabled: true,
    //     bindFieldName: 'leaserShopName',
    //     bindFieldVal: null,
    //     colSpan: 12
    // },
    {
        type: 'date',
        label: '当前合同截止日',
        isRequired: false,
        isDisabled: true,
        bindFieldName: 'contractEndDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '开始时间',
        isRequired: true,
        bindFieldName: 'rentStartDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '结束时间',
        isRequired: true,
        bindFieldName: 'rentEndDate',
        bindFieldVal: null,
        colSpan: 12
    },

    {
        type: 'date',
        label: '离场时间',
        isRequired: true,
        bindFieldName: 'leaveDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: ' 清退成本（元）',
        inputType: "number",
        isRequired: true,
        bindFieldName: 'clearCost',
        bindFieldVal: null,
        colSpan: 12
    },
    // {
    //     type: 'text',
    //     label: '预计月租金',
    //     isDisabled: true,
    //     inputType: "number",
    //     isRequired: false,
    //     bindFieldName: 'monthlyRentAmount',
    //     bindFieldVal: null,
    //     colSpan: 12
    // },

]

// 支出计划-空调保养费用
const airConditioner = [
    {
        type: 'text',
        label: '事项',
        isRequired: true,
        bindFieldName: '',
        bindFieldVal: "保养",
        colSpan: 12
    },
    {
        type: 'text',
        label: '事项内容',
        isRequired: true,
        bindFieldName: '',
        bindFieldVal: "空调保养费用",
        colSpan: 12
    },
    {
        type: 'text',
        label: '关联设备设施',
        isRequired: true,
        bindFieldName: '',
        bindFieldVal: "设备",
        colSpan: 12
    },
]

//活动 其他
const FormActivity = [
    {
        type: 'text',
        label: '事项',
        isRequired: true,
        bindFieldName: 'chargeItemName',
        bindFieldVal: null,
        labelWidth: '150px',
        colSpan: 12
    },
    {
        type: 'text',
        label: '总收入',
        isRequired: true,
        bindFieldName: 'total',
        bindFieldVal: null,
        colSpan: 12,
        isReadOnly: true
    },
    // {
    //     type: 'date',
    //     label: '开始时间',
    //     isRequired: true,
    //     bindFieldName: 'rentStartDate',
    //     bindFieldVal: null,
    //     colSpan: 12
    // },
    // {
    //     type: 'date',
    //     label: '结束时间',
    //     isRequired: true,
    //     bindFieldName: 'rentEndDate',
    //     bindFieldVal: null,
    //     colSpan: 12
    // },
    {
        type: 'text',
        inputType: "number",
        label: '1月预估金额',
        isRequired: true,
        bindFieldName: '1',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '2月预估金额',
        isRequired: true,
        bindFieldName: '2',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '3月预估金额',
        isRequired: true,
        bindFieldName: '3',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '4月预估金额',
        isRequired: true,
        bindFieldName: '4',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '5月预估金额',
        isRequired: true,
        bindFieldName: '5',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '6月预估金额',
        isRequired: true,
        bindFieldName: '6',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '7月预估金额',
        isRequired: true,
        bindFieldName: '7',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '8月预估金额',
        isRequired: true,
        bindFieldName: '8',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '9月预估金额',
        isRequired: true,
        bindFieldName: '9',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '10月预估金额',
        isRequired: true,
        bindFieldName: '10',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '11月预估金额',
        isRequired: true,
        bindFieldName: '11',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        inputType: "number",
        label: '12月预估金额',
        isRequired: true,
        bindFieldName: '12',
        bindFieldVal: null,
        colSpan: 12
    },
]

//无人设备
const FormEquipment = [
    {
        type: 'text',
        label: '事项',
        isRequired: true,
        bindFieldName: 'chargeItemName',
        bindFieldVal: null,
        colSpan: 12
    },
    // {
    //     type: 'text',
    //     label: '总收入',
    //     isRequired: true,
    //     bindFieldName: 'total',
    //     bindFieldVal: null,
    //     colSpan: 12
    // },
    {
        type: 'date',
        label: '开始时间',
        isRequired: true,
        bindFieldName: 'rentStartDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '结束时间',
        isRequired: true,
        bindFieldName: 'rentEndDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '位置',
        isRequired: true,
        bindFieldName: 'chargeItemDesc',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '已有数量',
        isRequired: true,
        bindFieldName: 'num',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '新增数量',
        isRequired: true,
        bindFieldName: 'newlyNum',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '清退数量',
        isRequired: true,
        bindFieldName: 'checkNum',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'date',
        label: '清退时间',
        isRequired: true,
        bindFieldName: 'leaveDate',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '清退成本',
        isRequired: true,
        bindFieldName: 'clearCost',
        bindFieldVal: null,
        colSpan: 12
    },
    {
        type: 'text',
        label: '预计月均收入',
        isDisabled: true,
        isRequired: false,
        bindFieldName: 'monthlyRentAmount',
        bindFieldVal: null,
        colSpan: 12
    },
]

export {
    Form,
    FormCard1,
    FormCard2,
    FormActivity,
    FormEquipment,
    airConditioner,
    FormGroup2
}